<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%--
  用于启动脚本检查应用是否正常启动  
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(application);
    if (context != null) {
        response.getWriter().write("OK");
    } else {
        response.getWriter().write("FAIL");
    }
%>
